<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<style>
    body {
        border: 1px solid #999;
        padding: 200px 0;
        display: flex;
        flex: 1;
        justify-content: center;
    }

    .box {
        display: flex;
        width: 100px;
        height: auto;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 20px;
        margin-right: 50px;
    }

    .demo {
        border: 1px solid red;
        background-color: aqua;
        height: 100px;
        width: 100px;
        display: inline-block;
    }

    .demo:hover {
        background-color: maroon;
        color: white;
    }

    .transition_d {
        transition: width 2s;
    }

    .transition_d:hover {
        width: 200px;
    }

    .transition_d2 {
        transition: width 2s, height 1s, transform 2s;
    }

    .transition_d2:hover {
        height: 200px;
        width: 200px;
        transform: rotate(360deg);
    }

    .transition_d3 {
        transition: transform 1s linear 1s;
    }

    .transition_d3:hover {
        transform: rotateY(360deg);
    }

    .transition_d4 {
        width: 50px;
        height: 50px;
        border: 1px dotted black;
        border-radius: 50%;
        transition: transform 2s linear 0s;

    }

    .transition_d4:hover {
        transform: rotate(360deg);
    }
</style>

<body>
    <div class="box">
        <span>transition width 2s</span>
        <div class="demo transition_d">
            此处用来测试
        </div>
    </div>

    <div class="box">
        <span>translate width height transform 1s</span>
        <div class="demo transition_d2">
            此处用来测试
        </div>
    </div>

    <div class="box">
        <span>translate transform 1s linear 1s(速度均匀，延迟1s过渡)</span>
        <div class="demo transition_d3">
            此处用来测试
        </div>
    </div>

    <div class="box">
        <span>translate transform 1s linear(圆形速度均匀)</span>
        <div class="demo transition_d4">
            旋转
        </div>
        <span style="font-size: 13px;">加载中...</span>
    </div>
</body>

</html>
